Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix server empty thread name #478

Merged
merged 1 commit into from
Aug 2, 2023
Merged

Fix server empty thread name #478

merged 1 commit into from
Aug 2, 2023

Conversation

lanthora
Copy link
Contributor

setThreadName in WebSocket::run will overwrite the previously set Srv::ws:, and getUrl is empty at this time, resulting in an empty thread name. For the client, 16 characters are not enough to represent very valid information in Linux. So delete setThreadName in WebSocket::run

@bsergean
Copy link
Collaborator

bsergean commented Aug 1, 2023

16 chars is not a ton but is useful still, maybe there could be an option to disable this, and we would default it to false to keep the old behavior.

@lanthora
Copy link
Contributor Author

lanthora commented Aug 2, 2023

@bsergean Fix the problem that the server thread name is empty, and keep the old behavior. Add option to disable automatic update of thread name.

@bsergean bsergean merged commit a701963 into machinezone:master Aug 2, 2023
7 of 8 checks passed
@bsergean
Copy link
Collaborator

bsergean commented Aug 2, 2023

thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants